package controller

import (
	"fmt"
	"github.com/gin-gonic/gin"
)

type HelloController struct {
	//Dependent services
}

func NewHelloController() *HelloController {
	return &HelloController{
		//Inject services
	}
}

func (c HelloController) Index(app *gin.Context) {
	fmt.Print("6666")

	//http 请求
	id := app.Query("id")

	//数据返回
	app.JSON(200, gin.H{"hello word": id})
	//return "hello"
}
